/*
 * @Author: zhang gen yuan
 * @Date: 2021-09-17 17:12:35
 * @Descripttion: 
 */
import { Search } from "@element-plus/icons";
import { ref, reactive } from "vue";
function paging(search) {
    let $_size = ref(10);
    let $_current = ref(1);
    let $_total = ref(10);
    let $_loading = ref(true);
    const handleSizeChange = (val) => {
        $_size.value = val;
        $_loading.value = true;
        search()
    };
    const handleCurrentChange = (val) => {
        $_current.value = val;
        $_loading.value = true;
        search()
    };
    return {
        $_size,
        $_current,
        $_total,
        handleSizeChange,
        handleCurrentChange,
        $_loading
    }

}


export default paging